1001 Secrets for Windows NT Registry
(Publisher: 29th Street Press)
Author(s): Tim Daniels
ISBN: 1882419685
Publication Date: 12/01/97

Previous Table of Contents Next


I-222 To have the system automatically shut down all hung applications, change the following registry value.

Hive: HKEY_CURRENT_USER
Key: Control Panel\Desktop
Value Name: AutoEndTasks
Data Type: REG_DWORD
Value: 1

By default, this value is 0, which shows the Wait, End Task, and Close dialog box; changing the value to 1 automatically shuts down all hung applications.

I-223 If you need to specify which executables Windows NT runs at logon, the next two registry entries show you the default executables and let you add a few of your own. These executables run in the User context.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\WindowsNT\CurrentVersion\Winlogon
Value Name: Userinit
Data Type: REG_SZ
Value: Userinit,Nddeagnt.exe

I-224 These executables run in the System context.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\WindowsNT\CurrentVersion\Winlogon
Value Name: System
Data Type: REG_SZ
Value: LSASS.exe

These values are the defaults. You can add your own by editing the string, being sure to include commas. Restart Windows NT for these changes to take effect.

I-225 Tired of having to log on just to power down? Try this registry entry.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\WindowsNT\CurrentVersion\Winlogon
Value Name: ShutDownWithOutLogon
Data Type: REG_SZ
Value: 1

Reboot for this change to take effect.

I-226 Do you get those annoying “insufficient memory” messages for the server service when you know you have plenty of disk and memory? These registry parameters control the server service, and tweaking them can help you avoid these messages.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\LanmanServer\ Parameters\
Value Name: MinFreeConnections
Data Type: REG_DWORD
Value: 3

This parameter specifies the number of free connection blocks maintained at each system in the connection. Acceptable values can range from 2 to 5.

I-227 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\LanmanServer\ Parameters\
Value Name: MinFreeWorkItems
Data Type: REG_DWORD
Value: 2

This value specifies the minimum number of available work items that the server receives before it starts processing a potential multiblock SMB request. Increasing this value increases the probability that work items are available for nonblocking requests. The downside of increasing the value is that the likelihood of rejecting blocking requests goes up. The default value is 2; any value between 0 and 10 is acceptable.

I-228 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\LanmanServer\ Parameters\
Value Name: MinKeepSearch
Data Type: REG_DWORD
Value: 480

This parameter specifies the minimum time in seconds the server keeps incomplete MS-DOS searches. You should not have to tweak this unless you are approaching the maximum number of open searches. The default is 480; values can range between 5 and 5000.

I-229 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\LanmanServer\ Parameters\
Value Name: MinLinkThroughPut
Data Type: REG_DWORD
Value: 0

This value specifies the minimum throughput the server allows before it disables certain locks for a given connection. Increasing this value helps tune for network congestion. The default is 0; values can range from 0 to infinity.

I-230 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\LanmanServer\ Parameters\
Value Name: MinRcvQueues
Data Type: REG_DWORD
Value: 3

This parameter specifies the minimum number of free receive work items the server needs before it allocates more Receive Queues. The value can range from 0 to 10.

I-231 If you simply want to stop the insufficient memory messages, the following series usually does the trick.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\LanmanServer\ Parameters\
Value Name: MinFreeConnections
Data Type: REG_DWORD
Value: 5

Start Control Panel and go to the network icon. Highlight Services and choose the Server service. Select Properties and then select Maximize Throughput for File Sharing. These changes should solve the problem.


Previous Table of Contents Next